package io.kblog.dao

import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.data.jpa.repository.Modifying
import org.springframework.data.repository.NoRepositoryBean

@NoRepositoryBean
interface BaseDao<T,ID> : JpaRepository<T, ID>, JpaSpecificationExecutor<T> {
    @Modifying
    fun deleteByIdIn(ids: List<ID>)
}